<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<script src="${ctxWebStatic}/laydate/laydate.js"></script>
<jsp:include page="/WEB-INF/views/layouts/head.jsp"></jsp:include>
<head>
<title>企业认证</title>
<style type="text/css">
em.error {
	height: 18px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 2px;
	margin-left: 20px;
	background: url("${ctxWebStatic}/images/error_img.png") no-repeat 0px
		0px;
	padding-left: 24px;
	color: #d3001e;
	font-size: 16px;
	font-family: "微软雅黑";
}
</style>
<script type="text/javascript">
	function sub(){
		$("#form").submit();
	}
</script>
</head>
<body>
	<div class="page">
		<jsp:include page="/WEB-INF/views/layouts/top_nomal.jsp"></jsp:include>
		<!--主体-->
		<div class="main_user_resigt">
			<div class="container">
				<div class="row">
					<div class="title_nav">
						<div class="line1"></div>
						<h4>企业信息</h4>
					</div>
					<form:form modelAttribute="user" id="form" action="${ctxWeb}/register/toRepeatAssociator" method="post">
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>营业执照名称：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<form:input type="text" path="company" readonly="true" class="form-control" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>企业类型：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<input type="text" value="${fns:getDictLabel(user.companyType,'company_type','')}" class="form-control" readonly="readonly" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>企业规模：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<input type="text" value="${fns:getDictLabel(user.companySize,'company_size','')}" class="form-control" readonly="readonly" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>电子邮箱：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<form:input path="linkmanEmail" readonly="true" class="form-control" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>联系人：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<form:input path="linkman" readonly="true" class="form-control" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>联系人电话：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<form:input path="linkmanPhone" readonly="true" class="form-control" />
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>所在地区：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<div data-toggle="distpicker" class="dist_address">
									<input type="text" value="${user.provinceName}${user.cityName}" readonly="readonly" class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label"> <i
								class="must_img"></i>详细地址：
							</label>
							<div class="col-sm-9 col-xs-8 input_left">
								<div data-toggle="distpicker" class="dist_address">
									<form:input path="address" readonly="true" class="form-control" />
								</div>
							</div>
						</div>
						<div class="form-group clearfix">
							<label for="firstname"
								class="col-sm-3 col-xs-4 input_info control-label">
							</label>
							<div class="col-sm-9 col-xs-8">
								<div class="img_list">
									<c:if test="${user.titleImage != '' && user.titleImage != null}">
									<figure class="up_img col-xs-4 marl15">
									  <input type="file" name='image1' onchange="showPic(this)" style='display:none' />
									  <div class="FileImg"  >				   
									 	 <img class='change_photo' src="${ctxWeb}/web/file/getFile?filePath=${user.titleImage}" alt="" /> <a
												href="javascript:void(0)" class="fileBtn">门头照片</a>
									  </div> 
									</figure>
									</c:if>
									<c:if test="${user.businessLicence != '' && user.businessLicence != null}" >
									<figure class="up_img col-xs-4">
										<input type="file" name='image2' onchange="showPic(this)" style='display:none' />
										<div class="FileImg">
											<img class='change_photo'  src="${ctxWeb}/web/file/getFile?filePath=${user.businessLicence}" alt="" /> <a
												href="javascript:void(0)" class="fileBtn">营业执照</a>
										</div>
									</figure>
									</c:if>
									<c:if test="${user.openBankAccountPermitCertificate != '' && user.openBankAccountPermitCertificate != null}" >
									<figure class="up_img col-xs-4">
										<input type="file" name='image3' onchange="showPic(this)" style='display:none' />
										<div class="FileImg">
											<img class='change_photo'  src="${ctxWeb}/web/file/getFile?filePath=${user.openBankAccountPermitCertificate}" alt="" /> <a
												href="javascript:void(0)" class="fileBtn">银行开户许可证</a>
										</div>
									</figure>
									</c:if>
									<c:if test="${user.organizationCodeCertificate != '' && user.organizationCodeCertificate != null  }" >
									<figure class="up_img col-xs-4 marl15">
										<input type="file" name='image4' onchange="showPic(this)" style='display:none' />
										<div class="FileImg">
											<img class='change_photo'  src="${ctxWeb}/web/file/getFile?filePath=${user.organizationCodeCertificate}" alt="" /> <a
												href="javascript:void(0)" class="fileBtn">组织机构代码证</a>
										</div>
									</figure>
									</c:if>
									<c:if test="${user.taxRegistrationCertificate != '' && user.taxRegistrationCertificate != null }" > 
									<figure class="up_img col-xs-4">
										<input type="file" name='image5' onchange="showPic(this)" style='display:none' />
										<div class="FileImg">
											<img class='change_photo' src="${ctxWeb}/web/file/getFile?filePath=${user.taxRegistrationCertificate}" alt="" /> <a
												href="javascript:void(0)" class="fileBtn">税务登记证</a>
										</div>
									</figure>
									</c:if>
								</div>
							</div>
						</div>
					</form:form>
					<p class="register_btn mar_t30 col-sm-offset-3 col-xs-offset-4">
						<c:choose>
							<c:when test="${user.examineState == 1}">
								<font size="1">企业认证信息审核中......</font>
							</c:when>
							<c:when test="${user.examineState == 3}">
								<font color="red" size="1">企业认证信息审核未通过！</font><br>
								<font color="red" size="1">${user.remark}</font>
							</c:when>
							<c:otherwise>
								状态有问题啊，去检查一下
							</c:otherwise>
						</c:choose>
					</p>
					<c:if test="${user.examineState == 3}">
						<p class="register_btn mar_t30 col-sm-offset-3 col-xs-offset-4">
							<a href="javascript:void(0)" onclick="sub()">重新审核</a>
						</p>
					</c:if>
				</div>
			</div>
		</div>
		<!--主体结束-->
		<!--foot-->
		<jsp:include page="/WEB-INF/views/layouts/buttom_2.jsp"></jsp:include>
		<!--foot结束-->
	</div>
</body>
</html>
